import os
import json

class ConfigHandler:

    def __init__(self):
        self.config_path = os.path.join(os.path.dirname(__file__))

    def parse_json(self,jsonname='config.json'):
        jsonfile = os.path.join(self.config_path,jsonname)
        data = json.load(open(jsonfile))
        return data


cf = ConfigHandler()
config_json_data = cf.parse_json()

if __name__ == '__main__':
    cf = ConfigHandler()
    print(cf.parse_json())
